using System.Collections.Generic;

namespace MvpFramework
{
    /// <summary>
    /// A view that Supports Validation
    /// </summary>
    public interface IValidatedView : IMvpView
    {
        /// <summary>
        /// All the ErrorLabels for Validation
        /// </summary>
        IList<IValidationMessage> ValidationErrorLabels { get; }

        /// <summary>
        /// Should return the Label for the Specification sent
        /// </summary>
        /// <returns></returns>
        //DEBT I wish we could make this Generic, but compilers aren't that smart
        IValidationMessage GetValidationLabelFor(object spec);
    }
}